package spring.JUNIT.aop;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.JUNIT.UnitTestBase;


@RunWith(BlockJUnit4ClassRunner.class)
public class TestAop extends UnitTestBase {

	public TestAop() {
		super("D:/spring/spring-aop.xml");

	}

	@Test
	public void testAop() throws Exception {
		aspectBiz biz = super.getBean("aspectBiz");
		biz.biz();
	}

	@Test
	public void testAopInit() throws Exception {
		aspectBiz biz = super.getBean("aspectBiz");
		biz.init("zzy", 100000);
		;
	}

	@Test
	public void testAopAround() throws Exception {
		Fit biz = (Fit) super.getBean("aspectBiz");
		biz.filter();

	}

}
